﻿namespace MvvmFx.Common.ViewModels.Behaviors.Observable
{
    public partial class CollectionObserver<TPropertySource>
    {
        #region Add/Remove items in the collection

        void CollectionItemRemoved(object sender, ItemEventArgs<TPropertySource> e)
        {
            _propertySourceRefs.RemoveAll((item => item.Target == e.Item));
        }

        #endregion
    }
}